package com.cmict.data.bpm.framework.rpc.config;

import com.cmict.data.form.api.task.CurrencyDataApi;
import com.cmict.data.form.api.task.FormDataApi;
import com.cmict.data.infra.api.message.MessageSendApi;
import com.cmict.data.system.api.dept.DeptApi;
import com.cmict.data.system.api.dept.PostApi;
import com.cmict.data.system.api.dict.DictDataApi;
import com.cmict.data.system.api.permission.RoleApi;
import com.cmict.data.system.api.sms.SmsSendApi;
import com.cmict.data.system.api.user.AdminUserApi;
import feign.httpclient.ApacheHttpClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@EnableFeignClients(clients =
        {
            RoleApi.class, DeptApi.class, PostApi.class,
            AdminUserApi.class, SmsSendApi.class, DictDataApi.class,
            MessageSendApi.class, FormDataApi.class, CurrencyDataApi.class
        })
@ConditionalOnClass(ApacheHttpClient.class)
public class RpcConfiguration {
}
